import { createApp } from 'vue'
import router from './router'
import store from './store'
import naive from './naive'
import App from './app.vue'
import { createI18n } from 'vue-i18n'

const app = createApp(App)
const messages = {
    zh_CN: { 
        new_op: '新干员',
        sub_op: '同分支干员'
    },
    en_US: {
        new_op: 'New Operators',
        sub_op: 'Operators In This Sub-Profession'
      }
}

const i18n = createI18n({
    locale: 'zh_CN',
    legacy: false,
    messages
})

app.use(router)
app.use(store)
app.use(naive)
app.use(i18n)

app.mount('#app')
